import Vue from 'vue'
// import VueRouter from 'vue-router'
import VueRouter from '../vueRouter/has'
import routes from './main-router' // 基本路由
// import routes from './nested-route' // 嵌套路由
// import routes from './programmatic-router' // 编程式导航

// 1. 注册路由插件
Vue.use(VueRouter)

// 2. 创建 router 对象
const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
